package com.macro.mall.tiny.modules.oms.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 会员优惠码表
 * </p>
 *
 * @author tyrone
 * @since 2024-10-23
 */
@Getter
@Setter
@TableName("oms_promo_code")
@ApiModel(value = "OmsPromoCode对象", description = "会员优惠码表")
public class OmsPromoCode implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("小程序openid")
    private String openId;

    @ApiModelProperty("优惠码（全局唯一）")
    private String promoCode;

    @ApiModelProperty("促销返点 单位%")
    private Double promoRebates;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("促销码状态 0未启用 1 已启用 2 已过期")
    private Integer status;

    @ApiModelProperty("促销码申请时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date applyTime;



    @TableField(exist = false)
    @ApiModelProperty("分页参数")
    private Integer page = 0;

    @ApiModelProperty("分页参数")
    @TableField(exist = false)
    private Integer size = 10;



    @ApiModelProperty("查询参数：创建时间起始时间")
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTimeStart;

    @ApiModelProperty("查询参数：创建时间结束时间")
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTimeEnd;

    @ApiModelProperty("查询参数：申请时间起始时间")
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date applyTimeStart;

    @ApiModelProperty("查询参数：申请时间结束时间")
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date applyTimeEnd;

    @ApiModelProperty("查询参数：促销返点起始值")
    @TableField(exist = false)
    private Double promoRebatesStart;

    @ApiModelProperty("查询参数：促销返点结束值")
    @TableField(exist = false)
    private Double promoRebatesEnd;



}
